package com.sws.weixin.entity;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import java.util.List;
import java.util.Map;

public class BatchSendDTO {
    @NotBlank(message = "模板ID不能为空")
    private String templateId;

    @NotEmpty(message = "接收用户不能为空")
    private List<String> openids;  // 更推荐使用 openids 而非 tousers

    @NotNull(message = "模板参数不能为空")
    private Map<String, Object> params;

    // Getters and Setters

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public List<String> getOpenids() {
        return openids;
    }

    public void setOpenids(List<String> openids) {
        this.openids = openids;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "BatchSendDTO{" +
                "templateId='" + templateId + '\'' +
                ", openids=" + openids +
                ", params=" + params +
                '}';
    }
}
